package vip.liux.backend.infrastructure.urls;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Data
@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(AppUrlConfiguration.class)
@ConfigurationProperties(value = "zero.app")
public class AppUrlConfiguration {

    @NestedConfigurationProperty
    private ApplicationUrlMap applications;

    private List<String> redirectAllowedUrls;
}
